const mutations = {
    setUserId(state, payload) {
        state.userInfo.userId = payload;
    },
    setUserInfo(state, payload) { // 从数据库获取到的个人中心的用户信息
        state.userInfo.info = payload;
    },
    setUserInfoFromWx(state, payload) {
        state.userInfoFromWx = payload;
    },
    setJobRecordList(state, payload) {
        state.jobRecordList = payload;
    },
    setInfoDetails(state, payload) {
        state.infoDetails = payload;
    },
    setCityList(state, payload) {
        state.cityList = payload;
    },
    setCurrentCity(state, payload) { // 选中的城市
        state.currentCity = payload;
    },
    // 清空列表页
    clearJobListInfo(state, payload) { // 招聘职位列表信息
        state.jobListInfo = [];
    },
    // 列表页
    setJobListInfo(state, payload) { // 招聘职位列表信息
        state.jobListInfo = state.jobListInfo.concat(payload);
    },
    setDistrictList(state, payload) { // 区县列表
        state.districtList = payload;
    },
    setSettlementList(state, payload) { // 获取结算方式列表
        state.settlementList = payload;
    },
};
export default function getMutations() {
    return mutations;
}
